package interfaces;

public class Tree implements Measurable
{
   public Tree(String aname,double aHeight,int iage)
   {
      name = aname;
      height = aHeight;
      age = iage;
   }
   public String getName()
   {
      return name;
   }

   public void setName(String name)
   {
      this.name = name;
   }

   public double getHeight()
   {
      return height;
   }

   public void setHeight(double height)
   {
      this.height = height;
   }

   public int getAge()
   {
      return age;
   }

   public void setAge(int age)
   {
      this.age = age;
   }
   
   public double getMeasure()
   {
      return height;
   }
   
   private String name;
   private double height;
   private int age;
}
